package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.bulletscreen.ActivityBarrageMessage;
import com.yanqu.road.entity.activity.bulletscreen.BulletScreenUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class BulletScreenBusiness {

    public static List<ActivityBarrageMessage> getActivityBarrageMessageList(int activityId, long zeroTime) {
        return DaoHelper.getActivityBarrageMessageDaoImpl().getActivityBarrageMessage(activityId, zeroTime);
    }

    public static boolean addActivityBarrageMessage(ActivityBarrageMessage msg) {
        return DaoHelper.getActivityBarrageMessageDaoImpl().add(msg);
    }

    public static Map<Integer, BulletScreenUserData> getBulletScreenUserData(long userId, List<Integer> activityIdList) {
        return DaoHelper.getBulletScreenUserDataDaoImpl().getBulletScreenUserData(userId, activityIdList);
    }


    public static boolean addBulletScreenUserData(BulletScreenUserData userData) {
        return DaoHelper.getBulletScreenUserDataDaoImpl().add(userData);
    }

    public static boolean updateBulletScreenBusiness(BulletScreenUserData userData) {
        return DaoHelper.getBulletScreenUserDataDaoImpl().update(userData);
    }

    public static long getMaxContentId(int activityId) {
        return DaoHelper.getActivityBarrageMessageDaoImpl().getMaxContentId(activityId);
    }
}
